<script lang="ts" setup>
import {
  Check,
  Delete,
  Edit,
  Message,
  Search,
  Star,
  Setting
} from '@element-plus/icons-vue'
</script>

<template>
  <div class="navigator">
    <el-icon>
      <Setting />
    </el-icon>
    <span>工作台</span>
  </div>
</template>

<style lang="scss" scoped>
.navigator {
  width: 160px;
  height: 40px;
  margin-bottom: 20px;
  background-color: transparent;
  border: none;
  color: rgb(95, 94, 94);
  font-size: 16px;
  transition: .3s;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;

  i {
    font-size: 20px;
  }

  span {
    padding-left: 10px;
  }

  &:last-child {
    margin-bottom: 0;
  }

  &:hover {
    background: linear-gradient(to right, #e3e3f0, #eaeaf4);
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
    transform: translateY(-2px);
    box-shadow: #dbdbdb 0px 5px 2px 5px;
  }
}

.active {
  width: 160px;
  height: 40px;
  margin-bottom: 20px;
  background-color: transparent;
  border: none;
  color: rgb(95, 94, 94);
  font-size: 16px;
  transition: .3s;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;

  i {
    font-size: 20px;
  }

  span {
    padding-left: 10px;
  }

  &:last-child {
    margin-bottom: 0;
  }

  &:hover {
    background: linear-gradient(to right, #e3e3f0, #eaeaf4);
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
    transform: translateY(-2px);
    box-shadow: #dbdbdb 0px 5px 2px 5px;
  }
}
</style>